package com.cq.hd.product.controller;

import com.cq.hd.common.response.Result;
import com.cq.hd.common.response.ResultGenerator;
import com.cq.hd.product.api.TbActiveBrowseStatisticsApi;
import com.cq.hd.product.api.dto.ActiveBrowseStatisticsDto;
import com.cq.hd.product.api.vo.ActiveBrowseStatisticsVo;
import com.cq.hd.product.service.TbActiveBrowseStatisticsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 * 活动浏览统计表 前端控制器
 * </p>
 *
 * @author mYunYu
 * @since 2024-01-15
 */
@RestController
public class TbActiveBrowseStatisticsController implements TbActiveBrowseStatisticsApi {

    @Autowired
    private TbActiveBrowseStatisticsService activeBrowseStatisticsService;

    @Override
    public Result<List<ActiveBrowseStatisticsVo>> listByDto(ActiveBrowseStatisticsDto activeBrowseStatisticsDto) {
        return ResultGenerator.success(activeBrowseStatisticsService.listByDto(activeBrowseStatisticsDto));
    }
}
